home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
os2
/
pvm34b3.zip
/
pvm34b3
/
pvm3
/
lib
/
ipcfree
< prev
next >
Wrap
Text File
|
1997-07-22
|
584b
|
31 lines
#!/bin/sh
#
# $Id: ipcfree,v 1.1 1996/09/23 21:15:42 pvmsrc Exp $
#
# ipcfree
#
# Delete any shared memory or semaphores lying around after a PVM
# program bombs out or is killed ungracefully.
# Run it if you're getting error messages like:
# semget: ... No space left on device
# shmget: ... No space left on device
# when using one of the *MP PVM architectures.
#
if [ "$USER" = "" ]; then
USER=` whoami `
fi
m=` ipcs | awk '$1~/^[ms]$/ && $5~/'$USER'/ {print "-"$1, $2}' `
case "$m" in
?*) echo "deleting $m"
ipcrm $m
;;
*) echo "didn't find anything"
;;
esac
exit 0